import QtQuick 1.0

Rectangle {
    id: window
//    function getNewMove() {
//        slot.x = window.getX();
//        slot.y = window.getY();
//    }

    states:
        State {
            name: "down"; when: true == true
            PropertyChanges {
                target: idom
                y: y + 500
            }
        }

    transitions: [
        Transition {
            from: ""
            to: "down"
            reversible: true
            ParallelAnimation {
                NumberAnimation { properties: "y,rotation"; duration: 8000; easing.type: Easing.InOutQuad }
                ColorAnimation { duration: 8000 }
            }
        }
    ]

    Image {
        id: background
        source: "img/1player.png"

        Image {
            id: slot_1
            source: "img/slot.png"
            x: 200
            y: 1000
        }

        Meegon {
            id: idom

    }
}
}
